//: src/com/silvtar/sync/entry/TestAccess.java
/* 
 * Created by 朴晟宁 <piaosn@gmail.com> on 4/21/2013. 
 * Copyright (c) 2013 朴晟宁. All rights reserved.
 * 
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program;
 * 
 * *********************************************************************
 * 
 * Modify History:
 * Date        Version    Description
 * 4/23/2013   0.1        Create the class. It only a entry for test.
 */

package com.silvtar.sync.entry;

import com.silvtar.io.StdOut;
import com.silvtar.isync.SSIsync;
import com.silvtar.isync.SSIsyncDaemon;
import com.silvtar.net.transporter.FileTransporter;
import com.silvtar.net.transporter.FileTransporterServer;
import com.silvtar.util.Bin;

/**
 * 测试专用入口，无实际意义
 * 
 * @author 朴晟宁/Silvtar
 * @author piaosn@gmail.com
 * @version 0.1
 */
public class TestEntry {

    /**
     * @param args
     *            无意义
     */
    public static void main(String[] args) {
        
        StdOut.println(System.getProperty("os.name"));
        StdOut.println(System.getProperty("os.arch"));
        StdOut.println(System.getProperty("os.version"));
        /*
        StdOut.println(String.valueOf(Bin.searchProcess("rsync")));

        FileTransporterServer fts = new FileTransporterServer(20681, 20680);
        FileTransporter ft = new FileTransporter("127.0.0.1", 20681, 20680);
        //ft.uploadFolder("/Users/silvtar/Develop/FileSyncer/test/local", "/Users/silvtar/Develop/FileSyncer/test/remote");
        ft.downloadFolder("/Users/silvtar/Develop/FileSyncer/test/remote", "/Users/silvtar/Develop/FileSyncer/test/local");
        */
        
        //FileTransporterServer fts = new FileTransporterServer(20681, 20680);
        /*
        SSIsyncDaemon ssisd = new SSIsyncDaemon(20550, 20681, 20680);
        SSIsync ssis = new SSIsync("127.0.0.1", 20550, 20681, 20680);
        ssis.startIsync("/Users/silvtar/Develop/FileSyncer/test/123", "/Users/silvtar/Develop/FileSyncer/test/remote");
        ssis.startIsync("/Users/silvtar/Develop/FileSyncer/test/local", "/Users/silvtar/Develop/FileSyncer/test/remote");*/
    }
}
